package com.rem.designPattern.adapter适配器.objectAdapter;

/**
 * @author Rem
 * @date 2022-11-16
 */
public class Client {
    public static void main(String[] args) {
        Phone phone = new Phone();

        VoltageAdapter voltageAdapter = new VoltageAdapter();
        voltageAdapter.setOutput220V(new Voltage220V());
        phone.charing(voltageAdapter);
    }
}